package com.cvpoc.model;

import java.io.Serializable;

public class Competence implements Serializable {

	private static final long serialVersionUID = 4919449927678629074L;

	private int id;
	private String libelle;
	private boolean validate;

	public Competence(String libelle, boolean isValidate) {
		this.libelle = libelle;
		this.validate = isValidate;
	}

	public Competence() {
		super();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getLibelle() {
		return libelle;
	}

	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}

	public boolean isValidate() {
		return validate;
	}

	public void setValidate(boolean isValidate) {
		this.validate = isValidate;
	}

	@Override
	public String toString() {
		return "Competence [id=" + id + ", libelle=" + libelle
				+ ", isValidate=" + validate + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Competence other = (Competence) obj;
		if (id != other.id)
			return false;
		return true;
	}

}
